package com.shuwen.gcdj.mapper.mysql.basics;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shuwen.gcdj.bean.basicsRepair.request.RepairListReq;
import com.shuwen.gcdj.bean.basicsRepair.response.RepairIndexPageResp;
import com.shuwen.gcdj.bean.basicsRepair.response.RepairListResp;
import com.shuwen.gcdj.bean.basicsRepair.response.StrategyRelInfoResp;
import com.shuwen.gcdj.bean.equipmentMaintenance.request.EquipmentMaintainReportReq;
import com.shuwen.gcdj.entity.basics.OrderRepairworkorder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.validation.Valid;
import java.util.List;

/**
* @author 小逸
* @description 针对表【order_repairworkorder】的数据库操作Mapper
* @createDate 2023-05-11 09:37:10
* @Entity generator.domain.OrderRepairworkorder
*/
@Mapper
public interface OrderRepairworkorderMapper extends BaseMapper<OrderRepairworkorder> {

    IPage<RepairListResp> getAllList(Page<RepairListResp> page, @Param("req") RepairListReq req);

    //设备编号查询
    List<RepairListResp> getList( @Param("req")EquipmentMaintainReportReq req);

    //报修codes查询
    List<RepairListResp> getrepairCodesList( @Param("repairCodes")List<String>repairCodes );

    List<RepairIndexPageResp> getRepairIndexPage(String equipmentId);

    StrategyRelInfoResp getStrategyEquipmentRelOne(@Valid String equipmentId);

}




